home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct12010.geo / 00040.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  18.6 KB  |  860 lines

  1. on initLesson
  2.   DisableBTNS()
  3.   setRollName(EMPTY)
  4.   set the visible of sprite 48 to 0
  5.   updateStage()
  6.   InitSnakelogic()
  7.   RestoreHilites()
  8.   Set_BACKSprite(47)
  9.   Set_NEXTSprite(46)
  10.   Set_HelpSprite(45)
  11.   Set_SoundSprite(44)
  12.   Set_NOTEPADSprite(43)
  13.   Set_GLOSSARYSprite(42)
  14.   setTimer(30)
  15.   set_MarkSprite(2)
  16.   Set_NavigatorHL(5)
  17.   Set_MainSprite(6)
  18.   Set_IndexSprite(7)
  19.   Set_FindSprite(9)
  20.   Set_TagWDSprite(8)
  21.   repeat with i = 42 to 47
  22.     set the immediate of sprite i to 1
  23.     set the puppet of sprite i to 1
  24.   end repeat
  25.   set the puppet of sprite get_NavigatorHL() to 1
  26.   set the puppet of sprite Get_MarkSprite() to 1
  27.   set the mouseDownScript to "CheckOpenWindow"
  28.   Set_NEXT(1)
  29. end
  30.  
  31. on InitSubjectSprite
  32.   if Get_ScreenSubject() <> "00" then
  33.     Set_SubjectSprite(39)
  34.     set the puppet of sprite Get_SubjectSprite() to 1
  35.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  36.     UpdateCursors(Get_SubjectSprite(), 4)
  37.   end if
  38. end
  39.  
  40. on GoToIntro
  41.   if Get_ScreenSubject() <> "00" then
  42.     set theNum to integer(Get_ScreenSubject())
  43.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  44.   end if
  45. end
  46.  
  47. on Set_SubjectSprite theSp
  48.   global SubjectSprite
  49.   set SubjectSprite to theSp
  50. end
  51.  
  52. on Get_SubjectSprite
  53.   global SubjectSprite
  54.   return SubjectSprite
  55. end
  56.  
  57. on Set_SubjectHeight theSp
  58.   global SubjectHeight
  59.   set SubjectHeight to theSp
  60. end
  61.  
  62. on Get_SubjectHeight
  63.   global SubjectHeight
  64.   return SubjectHeight
  65. end
  66.  
  67. on CheckForTagWd
  68.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  69.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  70.     set the cursor of sprite 48 to [400, 401]
  71.   end if
  72. end
  73.  
  74. on PlaySound theSnd
  75.   global PCDEL
  76.   if Get_PlayDub() then
  77.     sound playFile 2, the pathName & "SND12" & PCDEL & theSnd
  78.   end if
  79. end
  80.  
  81. on GoMain
  82.   sound stop 2
  83.   SaveSeenScreens()
  84.   go(1, "NC_MM010.GEO")
  85. end
  86.  
  87. on GoFind
  88.   global FindWD, CDfilePath, PCDEL
  89.   if objectp(FindWD) then
  90.     forget(FindWD)
  91.   end if
  92.   set the cursor of sprite 48 to [400, 401]
  93.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  94.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  95.   set the titleVisible of FindWD to 0
  96.   set the modal of FindWD to 1
  97.   open(FindWD)
  98. end
  99.  
  100. on HideFINDWindow
  101.   global FindWD
  102.   if objectp(FindWD) then
  103.     forget(FindWD)
  104.   end if
  105. end
  106.  
  107. on closeFindWindow
  108.   global FindWD
  109.   if objectp(FindWD) then
  110.     forget(FindWD)
  111.   end if
  112.   set the cursor of sprite 48 to 0
  113.   tell the stage
  114.     continue()
  115.     continueQT()
  116.   end tell
  117. end
  118.  
  119. on OpenFind2WD theData
  120.   global Find2WD, CDfilePath, PCDEL
  121.   HideFINDWindow()
  122.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  123.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  124.   set the titleVisible of Find2WD to 0
  125.   set the modal of Find2WD to 1
  126.   tell Find2WD
  127.     UpdateSelection(theData)
  128.   end tell
  129.   open(Find2WD)
  130. end
  131.  
  132. on CloseFind2Window
  133.   global Find2WD
  134.   if objectp(Find2WD) then
  135.     forget(Find2WD)
  136.   end if
  137.   set the cursor of sprite 48 to 0
  138.   tell the stage
  139.     continue()
  140.     continueQT()
  141.   end tell
  142. end
  143.  
  144. on GoIndex
  145.   global IndexWD, CDfilePath, PCDEL
  146.   if objectp(IndexWD) then
  147.     forget(IndexWD)
  148.   end if
  149.   set the cursor of sprite 48 to [400, 401]
  150.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  151.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  152.   set the titleVisible of IndexWD to 0
  153.   set the modal of IndexWD to 1
  154.   tell IndexWD
  155.     RonenInit()
  156.   end tell
  157.   open(IndexWD)
  158. end
  159.  
  160. on OpenWordWD theData
  161.   global WordWD, CDfilePath, PCDEL
  162.   HIdeIndexWindow()
  163.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  164.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  165.   set the titleVisible of WordWD to 0
  166.   set the modal of WordWD to 1
  167.   tell WordWD
  168.     UpdateSelection(theData)
  169.   end tell
  170.   open(WordWD)
  171. end
  172.  
  173. on CloseWordWindow
  174.   global WordWD
  175.   if objectp(WordWD) then
  176.     forget(WordWD)
  177.   end if
  178.   set the cursor of sprite 48 to 0
  179.   tell the stage
  180.     continue()
  181.     continueQT()
  182.   end tell
  183. end
  184.  
  185. on HIdeIndexWindow
  186.   global IndexWD
  187.   if objectp(IndexWD) then
  188.     forget(IndexWD)
  189.   end if
  190. end
  191.  
  192. on CloseIndexWindow
  193.   global IndexWD
  194.   if objectp(IndexWD) then
  195.     forget(IndexWD)
  196.   end if
  197.   set the cursor of sprite 48 to 0
  198.   tell the stage
  199.     continue()
  200.     continueQT()
  201.   end tell
  202. end
  203.  
  204. on GoIndexMovie thekind
  205.   if thekind = "tool" then
  206.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  207.   else
  208.     go(1, Get_IndexMovie())
  209.   end if
  210. end
  211.  
  212. on set_IndexMovie theMoov
  213.   global IndexMovie
  214.   set IndexMovie to theMoov
  215. end
  216.  
  217. on Get_IndexMovie theMoov
  218.   global IndexMovie
  219.   return IndexMovie
  220. end
  221.  
  222. on GoTags
  223.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  224.   if objectp(TagWD) then
  225.     forget(TagWD)
  226.   end if
  227.   set the cursor of sprite 48 to [400, 401]
  228.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  229.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  230.   set the titleVisible of TagWD to 0
  231.   set the modal of TagWD to 1
  232.   tell TagWD
  233.     UpdateFields()
  234.     PlaceMySlider()
  235.     init()
  236.   end tell
  237.   open(TagWD)
  238. end
  239.  
  240. on OpenRenameWD theLine
  241.   global RenameWD, CDfilePath, PCDEL
  242.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  243.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  244.   set the titleVisible of RenameWD to 0
  245.   set the modal of RenameWD to 1
  246.   tell RenameWD
  247.     UpdateLine(theLine)
  248.   end tell
  249.   open(RenameWD)
  250. end
  251.  
  252. on UpdateRenameWD theText
  253.   global TagWD
  254.   tell TagWD
  255.     UpdateRename(theText)
  256.   end tell
  257.   CloseRenameWD()
  258. end
  259.  
  260. on CloseRenameWD
  261.   global RenameWD
  262.   if objectp(RenameWD) then
  263.     forget(RenameWD)
  264.   end if
  265. end
  266.  
  267. on OpenSureWD
  268.   global SureWD, CDfilePath, PCDEL
  269.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  270.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  271.   set the titleVisible of SureWD to 0
  272.   set the modal of SureWD to 1
  273.   open(SureWD)
  274. end
  275.  
  276. on CloseSureWD
  277.   global SureWD
  278.   if objectp(SureWD) then
  279.     forget(SureWD)
  280.   end if
  281. end
  282.  
  283. on ClearAllTags
  284.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  285.   CloseSureWD()
  286.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  287.   set TAGS_LIST to []
  288.   set TAGS_TITLES to EMPTY
  289.   set TAGS_DATA to EMPTY
  290.   tell TagWD
  291.     UpdateFields()
  292.     PlaceMySlider()
  293.     init()
  294.   end tell
  295.   updateStage()
  296. end
  297.  
  298. on CloseTagWindow
  299.   global TagWD
  300.   if objectp(TagWD) then
  301.     forget(TagWD)
  302.   end if
  303.   set the cursor of sprite 48 to 0
  304.   tell the stage
  305.     continue()
  306.     continueQT()
  307.   end tell
  308. end
  309.  
  310. on GoTagMovie
  311.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  312. end
  313.  
  314. on Set_TagMovie theMovie
  315.   global TagMovie
  316.   set TagMovie to theMovie
  317. end
  318.  
  319. on Get_TagMovie
  320.   global TagMovie
  321.   return TagMovie
  322. end
  323.  
  324. on MarkScreen toMark
  325.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  326.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  327.   set movieName to the movieName
  328.   if toMark = "MARK" then
  329.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  330.     set LineNum to count(TAGS_LIST)
  331.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  332.     put TheTitle into line LineNum of TAGS_TITLES
  333.     put movieName into item 1 of line LineNum of TAGS_DATA
  334.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  335.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  336.   else
  337.     set itemNum to getOne(TAGS_LIST, movieName)
  338.     deleteAt(TAGS_LIST, itemNum)
  339.     delete line itemNum of TAGS_TITLES
  340.     delete line itemNum of TAGS_DATA
  341.   end if
  342.   updateStage()
  343. end
  344.  
  345. on UpdateMark
  346.   global TAGS_LIST
  347.   set movieName to the movieName
  348.   if getOne(TAGS_LIST, movieName) then
  349.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  350.   end if
  351. end
  352.  
  353. on HandleSound
  354.   global volumeWindow, CDfilePath, PCDEL
  355.   if objectp(volumeWindow) then
  356.     forget(volumeWindow)
  357.   end if
  358.   EnableBtn("SOUND", get_SOUNDSprite())
  359.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  360.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  361.   set the titleVisible of volumeWindow to 0
  362.   tell volumeWindow
  363.     RestoreSoundStatus()
  364.   end tell
  365.   open(volumeWindow)
  366. end
  367.  
  368. on handleQuit
  369.   global QuitWindow, CDfilePath, PCDEL
  370.   cursor(4)
  371.   if objectp(QuitWindow) then
  372.     forget(QuitWindow)
  373.   end if
  374.   set the cursor of sprite 48 to [400, 401]
  375.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  376.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  377.   set the titleVisible of QuitWindow to 0
  378.   set the modal of QuitWindow to 1
  379.   open(QuitWindow)
  380. end
  381.  
  382. on handleHELP
  383.   EnableBtn("HELP", get_HELPSprite())
  384.   openHelpWd()
  385. end
  386.  
  387. on openHelpWd
  388.   global helpWD, lastFrame, CDfilePath, PCDEL
  389.   set the cursor of sprite 48 to [400, 401]
  390.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  391.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  392.   set the titleVisible of helpWD to 0
  393.   set the modal of helpWD to 1
  394.   open(helpWD)
  395.   set lastFrame to the frame
  396.   go("helpLoop")
  397. end
  398.  
  399. on closeHelpWd
  400.   global helpWD, lastFrame
  401.   set the cursor of sprite 48 to 0
  402.   forget(helpWD)
  403.   go(lastFrame)
  404.   continueQT()
  405. end
  406.  
  407. on HandleNEXT
  408.   set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  409.   updateStage()
  410.   GoNext()
  411.   EnableBtn("NEXT", get_NEXTSprite())
  412. end
  413.  
  414. on HandleBACK
  415.   EnableBtn("BACK", get_BACKSprite())
  416.   EnableBtn("NEXT", get_NEXTSprite())
  417.   HideLastStep()
  418.   Set_NEXT(1)
  419.   sound stop 2
  420.   go("start")
  421. end
  422.  
  423. on continueQT
  424.   if the castNum of sprite 10 <> 0 then
  425.     if the name of cast the castNum of sprite 10 = "NCT12010.Q01" then
  426.       set the movieRate of sprite 10 to 0
  427.       set the movieRate of sprite 10 to 1
  428.     end if
  429.   end if
  430. end
  431.  
  432. on HandleGLOSSARY
  433.   global DicWindow
  434.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  435.   set the cursor of sprite 48 to [400, 401]
  436.   open(DicWindow)
  437.   tell the stage
  438.     pause()
  439.   end tell
  440.   tell DicWindow
  441.     go(2)
  442.   end tell
  443. end
  444.  
  445. on closeGLOSSARYwindow
  446.   set the cursor of sprite 48 to 0
  447.   continue()
  448.   continueQT()
  449. end
  450.  
  451. on closeNotePadWindow
  452.   set the cursor of sprite 48 to 0
  453.   continue()
  454.   continueQT()
  455. end
  456.  
  457. on HandleNOTEPAD
  458.   global NoteBookWindow, CDfilePath, PCDEL
  459.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  460.   set the cursor of sprite 48 to [400, 401]
  461.   if objectp(NoteBookWindow) then
  462.     forget(NoteBookWindow)
  463.   end if
  464.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  465.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  466.   set NBRect to the rect of NoteBookWindow
  467.   set x1 to getAt(NBRect, 1)
  468.   set y1 to getAt(NBRect, 2)
  469.   set x2 to getAt(NBRect, 3)
  470.   set y2 to getAt(NBRect, 4)
  471.   set the modal of NoteBookWindow to 1
  472.   set the windowType of NoteBookWindow to 2
  473.   set the titleVisible of window "NoteBook" to 0
  474.   open(NoteBookWindow)
  475. end
  476.  
  477. on createNoteBook
  478.   global NBPrintWindow, CDfilePath, PCDEL
  479.   if objectp(NBPrintWindow) then
  480.     forget(NBPrintWindow)
  481.   end if
  482.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  483.   set StageRect to the rect of the stage
  484.   set x1 to getAt(StageRect, 1)
  485.   set y1 to getAt(StageRect, 2)
  486.   set x2 to getAt(StageRect, 3)
  487.   set y2 to getAt(StageRect, 4)
  488.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  489.   set NBRect to the rect of NBPrintWindow
  490.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  491.   set the windowType of NBPrintWindow to 2
  492.   open(NBPrintWindow)
  493. end
  494.  
  495. on closePrintWindow
  496.   RestoreHilites()
  497. end
  498.  
  499. on closeQuitWindow
  500.   global QuitWindow
  501.   set the cursor of sprite 48 to 0
  502.   forget(QuitWindow)
  503.   continue()
  504.   continueQT()
  505. end
  506.  
  507. on leaveApplication
  508.   global QuitWindow, UsersData, TheBackWindow
  509.   forget(QuitWindow)
  510.   if the machineType <> 256 then
  511.   end if
  512.   quit()
  513. end
  514.  
  515. on keyDown
  516.   if not get_Disabled() then
  517.     if the commandDown and ((the key = "q") or (the key = ".")) then
  518.       handleQuit()
  519.     else
  520.       if (the keyCode = 76) or (the keyCode = 36) then
  521.         HandleNEXT()
  522.       else
  523.         pass()
  524.       end if
  525.     end if
  526.   else
  527.     pass()
  528.   end if
  529. end
  530.  
  531. on CheckOpenWindow
  532.   global volumeWindow
  533.   if objectp(volumeWindow) then
  534.     forget(volumeWindow)
  535.     continue()
  536.     continueQT()
  537.   end if
  538. end
  539.  
  540. on CheckRollOver
  541.   if rollOver(get_IndexSprite()) then
  542.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  543.     set Hloc to the locH of sprite get_IndexSprite()
  544.     set Vloc to the locV of sprite get_IndexSprite()
  545.   else
  546.     if rollOver(get_FindSprite()) then
  547.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  548.       set Hloc to the locH of sprite get_FindSprite()
  549.       set Vloc to the locV of sprite get_FindSprite()
  550.     else
  551.       if rollOver(Get_TagWdSprite()) then
  552.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  553.         set Hloc to the locH of sprite Get_TagWdSprite()
  554.         set Vloc to the locV of sprite Get_TagWdSprite()
  555.       else
  556.         set Hloc to EMPTY
  557.       end if
  558.     end if
  559.   end if
  560.   if Hloc <> EMPTY then
  561.     set the locH of sprite get_NavigatorHL() to Hloc
  562.     set the locV of sprite get_NavigatorHL() to Vloc
  563.     set the visible of sprite get_NavigatorHL() to 1
  564.     updateStage()
  565.   else
  566.     set the visible of sprite get_NavigatorHL() to 0
  567.     updateStage()
  568.   end if
  569. end
  570.  
  571. on setDefaultCursor
  572.   set cursorList to getCursorList()
  573.   set counter to count(cursorList)
  574.   repeat with i = 1 to counter
  575.     set currItem to getAt(cursorList, i)
  576.     if currItem <> 0 then
  577.       set CursorCastNum to getCursor(currItem)
  578.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  579.     end if
  580.   end repeat
  581. end
  582.  
  583. on UpdateCursors theSp, theCursor
  584.   global cursorList
  585.   setAt(cursorList, theSp, theCursor)
  586.   if theCursor = 0 then
  587.     set the cursor of sprite theSp to theCursor
  588.   else
  589.     set CursorCastNum to getCursor(theCursor)
  590.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  591.   end if
  592. end
  593.  
  594. on setEmptyCursor
  595.   set cursorList to getCursorList()
  596.   set counter to count(cursorList)
  597.   repeat with i = 1 to counter
  598.     set currItem to getAt(cursorList, i)
  599.     if currItem <> 0 then
  600.       set the cursor of sprite i to 0
  601.       setAt(cursorList, i, 0)
  602.     end if
  603.   end repeat
  604. end
  605.  
  606. on setCursorTool int
  607.   global CursorTool
  608.   set CursorTool to int
  609. end
  610.  
  611. on initCursorCastNum
  612.   global CursorCastNum
  613.   set CursorCastNum to "400,402,404,406"
  614. end
  615.  
  616. on getCursor cursorNum
  617.   global CursorCastNum
  618.   return integer(item cursorNum of CursorCastNum)
  619. end
  620.  
  621. on initCursorList list
  622.   global cursorList
  623.   if list = 1 then
  624.     set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  625.   end if
  626.   setDefaultCursor()
  627. end
  628.  
  629. on getCursorList
  630.   global cursorList
  631.   return cursorList
  632. end
  633.  
  634. on ___BTNS_HANDLERS___
  635. end
  636.  
  637. on switchButt spriteNum, castDown, macroName
  638.   if getRollName() <> EMPTY then
  639.     set spNum to EMPTY
  640.     do("put get_" & getRollName() & "Sprite() into spNum")
  641.     set the castNum of sprite spNum to the number of cast getRollName()
  642.     setRollName(EMPTY)
  643.   end if
  644.   set flag to 0
  645.   set SaveCast to the castNum of sprite spriteNum
  646.   set flag to swapCast(spriteNum, SaveCast, castDown)
  647.   repeat while the stillDown
  648.     set flag to swapCast(spriteNum, SaveCast, castDown)
  649.   end repeat
  650.   if flag = 1 then
  651.     sound stop 2
  652.     do(macroName)
  653.   end if
  654. end
  655.  
  656. on swapCast spriteNum, SaveCast, castDown
  657.   if rollOver(spriteNum) then
  658.     set the castNum of sprite spriteNum to the number of cast castDown
  659.     updateStage()
  660.     return 1
  661.   else
  662.     set the castNum of sprite spriteNum to the number of cast SaveCast
  663.     updateStage()
  664.     return 0
  665.   end if
  666. end
  667.  
  668. on DisableBtn btnName, btnSprite
  669.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  670. end
  671.  
  672. on EnableBtn btnName, btnSprite
  673.   set the castNum of sprite btnSprite to the number of cast btnName
  674. end
  675.  
  676. on setRollName theName
  677.   global RollName
  678.   set RollName to theName
  679. end
  680.  
  681. on getRollName
  682.   global RollName
  683.   return RollName
  684. end
  685.  
  686. on Set_NOTEPADSprite theSp
  687.   global NOTEPADSprite
  688.   set NOTEPADSprite to theSp
  689. end
  690.  
  691. on Get_NOTEPADSprite
  692.   global NOTEPADSprite
  693.   return NOTEPADSprite
  694. end
  695.  
  696. on Set_GLOSSARYSprite theSp
  697.   global GLOSSARYSprite
  698.   set GLOSSARYSprite to theSp
  699. end
  700.  
  701. on Get_GLOSSARYSprite
  702.   global GLOSSARYSprite
  703.   return GLOSSARYSprite
  704. end
  705.  
  706. on Set_SoundSprite theSp
  707.   global SoundSprite
  708.   set SoundSprite to theSp
  709. end
  710.  
  711. on get_SOUNDSprite
  712.   global SoundSprite
  713.   return SoundSprite
  714. end
  715.  
  716. on Set_HelpSprite theSp
  717.   global HelpSprite
  718.   set HelpSprite to theSp
  719. end
  720.  
  721. on get_HELPSprite
  722.   global HelpSprite
  723.   return HelpSprite
  724. end
  725.  
  726. on Set_NEXTSprite theSp
  727.   global NEXTSprite
  728.   set NEXTSprite to theSp
  729. end
  730.  
  731. on get_NEXTSprite
  732.   global NEXTSprite
  733.   return NEXTSprite
  734. end
  735.  
  736. on Set_BACKSprite theSp
  737.   global BACKSprite
  738.   set BACKSprite to theSp
  739. end
  740.  
  741. on get_BACKSprite
  742.   global BACKSprite
  743.   return BACKSprite
  744. end
  745.  
  746. on Set_NavigatorHL theSp
  747.   global NavigatorHL
  748.   set NavigatorHL to theSp
  749. end
  750.  
  751. on get_NavigatorHL
  752.   global NavigatorHL
  753.   return NavigatorHL
  754. end
  755.  
  756. on Set_IndexSprite theSp
  757.   global IndexSprite
  758.   set IndexSprite to theSp
  759. end
  760.  
  761. on get_IndexSprite
  762.   global IndexSprite
  763.   return IndexSprite
  764. end
  765.  
  766. on Set_TagWDSprite theSp
  767.   global TagWdSprite
  768.   set TagWdSprite to theSp
  769. end
  770.  
  771. on Get_TagWdSprite
  772.   global TagWdSprite
  773.   return TagWdSprite
  774. end
  775.  
  776. on Set_FindSprite theSp
  777.   global FindSprite
  778.   set FindSprite to theSp
  779. end
  780.  
  781. on get_FindSprite
  782.   global FindSprite
  783.   return FindSprite
  784. end
  785.  
  786. on Set_MainSprite theSp
  787.   global MainSprite
  788.   set MainSprite to theSp
  789. end
  790.  
  791. on get_MainSprite
  792.   global MainSprite
  793.   return MainSprite
  794. end
  795.  
  796. on Set_NEXT theSp
  797.   global next
  798.   set next to theSp
  799. end
  800.  
  801. on Get_NEXT
  802.   global next
  803.   return next
  804. end
  805.  
  806. on Set_PlayDub theMode
  807.   global PlayDub
  808.   set PlayDub to theMode
  809. end
  810.  
  811. on Get_PlayDub
  812.   global PlayDub
  813.   return PlayDub
  814. end
  815.  
  816. on Set_ScreenSubject theNum
  817.   global ScreenSubject
  818.   set ScreenSubject to theNum
  819. end
  820.  
  821. on Get_ScreenSubject
  822.   global ScreenSubject
  823.   return ScreenSubject
  824. end
  825.  
  826. on set_MarkSprite theNum
  827.   global MarkSprite
  828.   set MarkSprite to theNum
  829. end
  830.  
  831. on Get_MarkSprite
  832.   global MarkSprite
  833.   return MarkSprite
  834. end
  835.  
  836. on setTimer int
  837.   global theTime
  838.   set theTime to int
  839. end
  840.  
  841. on getTimer
  842.   global theTime
  843.   return theTime
  844. end
  845.  
  846. on DisableBTNS
  847.   global DisableMode
  848.   set DisableMode to 1
  849. end
  850.  
  851. on EnableBtns
  852.   global DisableMode
  853.   set DisableMode to 0
  854. end
  855.  
  856. on get_Disabled
  857.   global DisableMode
  858.   return DisableMode
  859. end
  860.